package day0524;

public class Q6 {
    public static void main(String[] args) {
        double price=689;
        if(500<=price  &&  price<700){
            System.out.println(price*0.8);
        }else if(700<=price  &&  price<900){
            System.out.println(price*0.7);
        }else if(900<=price){
            System.out.println(price*0.5);
        }else{
            System.out.println(price);
        }

    }
}
